package com.jijs.soap;

import java.util.List;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

/**
 * 如果加targetNamespace，则实现类也要加上
 * @author jjs
 *
 */
@WebService(targetNamespace="http://www.infcn.com.cn/")
public interface IMyService {

	@WebResult(name = "addResult")
	public int add(@WebParam(name = "a") int a, @WebParam(name = "b") int b);

	@WebResult(name = "user")
	public User addUser(@WebParam(name = "user") User user);

	@WebResult(name = "user")
	public User login(@WebParam(name = "userName") String userName, @WebParam(name = "password") String password) throws UserException;

	@WebResult(name = "user")
	public List<User> list();

	@WebResult(name = "user")
	public List<User> listHeader(@WebParam(header=true,name="authInfo")String authInfo);
}
